<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<s:form method="post" action="updateAccountDetails.htm" id="form" namespace="/admin" theme="simple">
		<s:actionerror cssClass="Note-red" />
	<table width="100%">
		<tr>
			<td height="40" class="sectionheading bottom-border">Account Details</td>
		</tr>
		<tr><td>&nbsp;</td></tr>
		<tr>
			<td>
				<table width="100%">
					<tr align="left">
						<td class="verdana12blacknormal"><b>Account:</b></td>
						<td class="verdana12blacknormal"><s:property value="accountDetailList.userId" /></td>
					</tr>
					<tr>
						<td class="verdana12blacknormal"><b>Name:</b></td>
						<td class="verdana12blacknormal"><s:property value="accountDetailList.firstName" />&nbsp;<s:property value="accountDetailList.lastName" /></td>
					</tr>
					<tr>
						<td class="verdana12blacknormal"><b>Balance:</b></td>
						<td class="verdana12blacknormal"><s:property value="accountDetailList.currentBalance" /></td>
					<tr>
						<td class="verdana12blacknormal"><b>Deposits:</b></td>
						<td class="verdana12blacknormal"><s:property value="accountDetailList.totalPaid" /></td>
					</tr>
					<tr>
						<td class="verdana12blacknormal"><b>Email:</b></td>
						<td class="verdana12blacknormal"><s:property value="accountDetailList.email" /></td>
					</tr>
					<tr>
						<td class="verdana12blacknormal"><b>Address:</b></td>
						<td class="verdana12blacknormal"><s:property value="accountDetailList.street" />, <s:property value="accountDetailList.zip" />, <s:property value="accountDetailList.city" />, <s:property value="accountDetailList.state.categoryName" />, <s:property value="accountDetailList.country.categoryName" /></td>
					</tr>
					<tr>
						<td class="verdana12blacknormal"><b>Phone:</b></td>
						<td class="verdana12blacknormal"><s:property value="accountDetailList.phone" /></td>
					</tr>
					<tr>
						<td class="verdana12blacknormal"><b>Started:</b></td>
						<td class="verdana12blacknormal"><s:property value="accountDetailList.createdDate" /></td>
					</tr>
					<tr>
						<td class="verdana12blacknormal"><b>VAT Id No.:</b></td>
						<td class="verdana12blacknormal"><s:property value="accountDetailList.vatidnr1" /></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table>
					<tr>
						<td class="verdana12blacknormal">Status:</td>
						<td class="verdana12blacknormal"><s:checkbox name="status" value="accountDetailList.active" /></td>
						<td class="verdana12blacknormal">&nbsp;|&nbsp;</td>
						<td class="verdana12blacknormal">Sell:</td>
						<td class="verdana12blacknormal"><s:checkbox name="usersInfo.sell" value="usersInfo.sell" /></td>
						<td class="verdana12blacknormal">&nbsp;|&nbsp;</td>
						<td class="verdana12blacknormal">Buy:</td>
						<td class="verdana12blacknormal"><s:checkbox name="usersInfo.buy" value="usersInfo.buy" /></td>
						<td class="verdana12blacknormal">&nbsp;|&nbsp;</td>
						<td class="verdana12blacknormal">Partner:</td>
						<td class="verdana12blacknormal"><s:checkbox name="usersInfo.partner" value="usersInfo.partner" /></td>
						<td class="verdana12blacknormal">&nbsp;|&nbsp;</td>
						<td class="verdana12blacknormal">Sponsor:</td>
						<td class="verdana12blacknormal"><s:checkbox name="usersInfo.sponser" value="usersInfo.sponser" /></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table>
					<tr>
						<td class="verdana12blacknormal">Verified:</td>
						<td class="verdana12blacknormal"><s:checkbox name="usersInfo.verified" value="usersInfo.verified" /></td>
						<td class="verdana12blacknormal">&nbsp;|&nbsp;</td>
						<td class="verdana12blacknormal">Verified+:</td>
						<td class="verdana12blacknormal"><s:checkbox name="usersInfo.verified1" value="usersInfo.verified1" /></td>
						<td class="verdana12blacknormal">&nbsp;|&nbsp;</td>
						<td class="verdana12blacknormal">Verified++:</td>
						<td class="verdana12blacknormal"><s:checkbox name="usersInfo.verified2" value="usersInfo.verified2" /></td>
						<td class="verdana12blacknormal">&nbsp;|&nbsp;</td>
						<td class="verdana12blacknormal">Power:</td>
						<td class="verdana12blacknormal"><s:checkbox name="usersInfo.power" value="usersInfo.power" /></td>
					</tr>
				</table>
			</td>
		</tr>
	<s:if test="accountDetailList.activationKey == null">
		<tr>
			<td>
				<table width="100%">
				<tr>
					<td height="40" class="sectionheading bottom-border" colspan="2">Add Credit</td>
				</tr>
				<tr>
					<td class="verdana12blacknormal"><b>Amount:</b></td>
					<td class="verdana12blacknormal"><s:textfield name="creditAmount" cssClass="Textfiled-border" /></td>
				</tr>
				<tr>
					<td class="verdana12blacknormal"><b>Reason:</b></td>
    				<td class="verdana12blacknormal" width="100%" nowrap="nowrap">
    					<select size="1" name="creditReason" class="Textfiled-border">
    						<option value="Referral credit.">Referral credit.</option>
    						<option value="Deposit with credit card.">Deposit with credit card.</option>
    						<option value="Reversed credit.">Reversed credit.</option>
    						<option value="Deposit with debit card.">Deposit with debit card.</option>
    						<option value="Refund.">Refund.</option>
    						<option value="Promotional credit.">Promotional credit.</option>
    						<option value="Duplicate charge credit">Duplicate charge credit</option>
    						<option value="Deposit with check.">Deposit with check.</option>
    						<option value="Deposit with PayPal.">Deposit with PayPal.</option>
    						<option value="Deposit with electronic bank transfer.">Deposit with electronic bank transfer.</option>
    						<option value="Credit.">Credit.</option>
    					</select>
    				</td>
				</tr>
				<tr><td class="verdana12blacknormal">&nbsp;</td></tr>
				<tr>
					<td height="40" class="sectionheading bottom-border" colspan="2">Add Debit:</td>
				</tr>
				<tr>
					<td class="verdana12blacknormal"><b>Amount:</td>
					<td class="verdana12blacknormal"><s:textfield name="debitAmount" cssClass="Textfiled-border" /></td>
				</tr>
				<tr>
					<td class="verdana12blacknormal"><b>Reason:</b></td>
    				<td class="verdana12blacknormal" width="100%" nowrap="nowrap">
    					<select size="1" name="debitReason" class="Textfiled-border">
    						<option value="Returned check fees.">Returned check fees.</option>
    						<option value="Uncollected balance.">Uncollected balance.</option>
    						<option value="Debit.">Debit.</option>
    						<option value="Previous balance.">Previous balance.</option>
    						<option value="Finance charge.">Finance charge.</option>
    					</select>
    				</td>
				</tr>
				</table>
			</td>
		</tr>
	</s:if>
		<tr>
			<td>
				<table width="100%">
					<tr>
						<td>
							<br>
							<s:submit value="Submit" name="Submit" type="image" src="../Admin-Images/submit-btn.gif" theme="simple" title="Submit"/>
							<img style="cursor: pointer;" onclick="document.getElementById('form').reset();" src="../Admin-Images/reset-button.gif" alt="Reset" title="Reset">
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr><td>&nbsp;</td></tr>
		<tr>
			<td><a href="viewInvoices.htm?accountDetailid=<s:property value="usersInfo.user.id" />">View Invoices</a></td>
			<td><a href="viewAccountSheet.htm?accountDetailid=<s:property value="usersInfo.user.id" />">View Account Sheet</a></td>
		</tr>
	</table>
	<s:hidden name="usersInfo.id" value="%{usersInfo.id}" />
	<s:hidden name="accountDetailid" value="%{usersInfo.user.id}" />
</s:form>